from django.urls import path
from apps.users.views import UsernameCount,MobileCount,RegisterView,LoginView,LogoutView,CenterView
from apps.users.views import EmailView,CreateAddressView,AddressView

urlpatterns = [
    path('usernames/<username:username>/count/', UsernameCount.as_view()),
    path('mobiles/<mobile:mobile>/count/', MobileCount.as_view()),
    path('register/', RegisterView.as_view()),
    path('login/', LoginView.as_view()),
    path('logout/', LogoutView.as_view()),
    path('info/', CenterView.as_view()),
    path('emails/', EmailView.as_view()),
    path('addresses/create/', CreateAddressView.as_view()),
    path('addresses/', AddressView.as_view())
]